package com.ybkj.o2o.zhuanche.service;

import com.ybkj.o2o.zhuanche.common.query.OrderReviewQuery;
import com.ybkj.o2o.zhuanche.entity.OrderReview;
import com.ybkj.o2o.zhuanche.entity.OrderReviewCriteria;

import java.util.List;

public interface OrderReviewService extends BaseService<OrderReview, OrderReviewCriteria, Long> {
 
  OrderReview findByOrderIdAndAppKey(OrderReviewQuery orderReviewQuery);

  List<OrderReview> findByDriver(OrderReviewQuery orderReviewQuery);
  
  Long countByDriver(OrderReviewQuery orderReviewQuery);

  Integer deleteById(Long id, String appKey);

  OrderReview findOne(OrderReviewQuery orderReviewQuery);

}
